import request from '@/utils/request'

export function list(data) {
  return request({
    url: '/device/repair/record/list',
    method: 'post',
    data: data
  })
}
export function untreatedList(data) {
  return request({
    url: '/device/repair/overdue/list',
    method: 'post',
    data: data
  })
}
export function addOrUpdate(data) {
  return request({
    url: '/device/repair/record/edit',
    method: 'post',
    data: data
  })
}
export function getInfo(data) {
  return request({
    url: '/device/repair/record/' + data,
    method: 'get'
  })
}

export function batchbylist(data) {
  return request({
    url: '/device/spare/inventoryNumber/getAllBatchByCompanyId',
    method: 'post',
    data: data
  })
}

export function getTypelist(data) {
  return request({
    url: '/device/repair/type/list',
    method: 'post',
    data: data
  })
}
export function getManagelist(data) {
  return request({
    url: '/device/basicInformation/firm/list',
    method: 'post',
    data: data
  })
}

export function getNamelist(data) {
  return request({
    url: '/device/basicInformation/standingBook/list',
    method: 'post',
    data: data
  })
}
